package com.lais.record.base.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @Author: luowen
 * @Description:账户信息
 * @Date: Create in 21:35 2019/11/27
 */
@Data
@ToString
@Table(name="t_account")
@ApiModel
public class Account {

    @Id
    @ApiModelProperty(hidden = true)
    private String id; //主键id

    @NotEmpty(message = "账户名不能为空")
    @ApiModelProperty(value = "账户名必填",name = "accountName",required = true)
    private String accountName; //账户名

    @ApiModelProperty(required = false,value = "accountUrl")
    private String accountUrl;//网站地址

    @NotEmpty(message = "账户密码不能为空")
    @ApiModelProperty(value = "账户密码必填")
    private String accountPassword; //账户密码

    @ApiModelProperty(required = false,value = "accountDescription")
    private String accountDescription; //账户描述

    @ApiModelProperty(hidden = true)
    private String status; //状态

    @ApiModelProperty(hidden = true)
    private String uid; //用户id

    @ApiModelProperty(hidden = true)
    private Date created; //创建时间

    @ApiModelProperty(hidden = true)
    private Date updated; //修改时间
}
